
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>添加用户</title>
    <!-- 1. 导入CSS的全局样式 -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <!-- 2. jQuery导入，建议使用1.9以上的版本 -->
    <script src="js/jquery-3.3.1.min.js"></script>
    <!-- 3. 导入bootstrap的js文件 -->
    <script src="js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <center><h3>添加小组成员页面</h3>
    <form action="${pageContext.request.contextPath}/li/add" method="post">
        <div class="form-group">
            <label for="name">姓名：</label>
            <input type="text" class="form-control" id="name" name="name" placeholder="请输入姓名">
        </div>

        <div class="form-group">
            <label for="age">年龄：</label>
            <input type="text" class="form-control" id="age" name="age" placeholder="请输入年龄">
        </div>

        <div class="form-group">
            <label for="sex">性别：</label>
            <input type="text"class="form-control" id="sex"name="sex"placeholder="请输入性别" >
        </div>

        <div class="form-group">
            <label >所属小组：</label>
           <%--<input type="text" class="form-control" name="projectid" placeholder="请输入所在小组">--%>
            <select name="projectid" class="form-control">
                <option name="projectid" value="1">第一组</option>
                <option name="projectid" value="2">第二组</option>
                <option name="projectid" value="3">第三组</option>
            </select>
        </div>

        <div class="form-group">
            <label>手机号：</label>
            <input type="text"id="phone" class="form-control" name="phonenumber" placeholder="请输入手机号码"/>
        </div>

        <div class="form-group">
            <label >Email：</label>
            <input type="text" class="form-control" name="mailbox" placeholder="请输入邮箱地址"/>
        </div>

        <div class="form-group" style="text-align: center">
            <input class="btn btn-primary" type="submit" value="提交" />
            <input class="btn btn-default" type="reset" value="重置" />
            <a href="/li/fanhui"><input type="button" href="/li/fanhui" value="返回"></a>
        </div>
    </form>
    </center>
</div>
</body>
<script type="text/javascript">
    function fun() {

    var xmlhttp;
    if (window.XMLHttpRequest){
        xmlhttp=new XMLHttpRequest();
    }else{
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlhttp.open("GET","${pageContext.request.contextPath}/",true);
    xmlhttp.send();
    }
</script>
</html>